package com.cxy.msclass;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
public class MsClassApplication {

	public static void main(String[] args) {
		SpringApplication.run(MsClassApplication.class, args);
	}

	/**
	 * spring web提供的轻量级的http client
	 * <bean id="restTemplate" class=""
	 * @return
	 */
	@Bean
	public RestTemplate restTemplate(){
		return new RestTemplate();
	}
}
